package org.taobao.ibatiside.ui.wizard;

import org.eclipse.jface.viewers.LabelProvider;
import org.taobao.ibatiside.ui.util.TypeWrapper;

public class TypeWrapperLabelProvider extends LabelProvider {
	@Override
	public String getText(Object element) {
		TypeWrapper wrapper = (TypeWrapper) element;
		if (wrapper.getCategory() == TypeWrapper.SORT
				|| wrapper.getCategory() == TypeWrapper.SELECT) {
			return wrapper.getTypeLiteral();
		} else {
			return "   " + wrapper.getTypeLiteral();
		}
	}
	
}
